<?php

$section = $_GET['sec'];
$path = $_GET['ipath'];

switch ($section) {
    case "topic":
        $path = \controller\Config::getPropertyByKey('directory.view.topic') . $path;
        break;
    case "new":
        $path = \controller\Config::getPropertyByKey('directory.view.articles') . $path;
        break;
    case "newcom":
        $path = \controller\Config::getPropertyByKey('directory.view.upload') . $path;
        break;
    case "prof":
        $path = \controller\Config::getPropertyByKey('directory.view.gallery') . $path;
        break;
    case "img":
        $path = \controller\Config::getPropertyByKey('directory.view.gallery') . $path;
        break;
    case "fly":
        $path = \controller\Config::getPropertyByKey('directory.view.fly') . $path;
        break;
}
?>

<img src="<?= $path ?>" style="max-width: 1500px;">

